package com.dhcc.bpm.modules.scf.vo.ScfRenewableInInfoVO;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 再生资源入库信息列表查询视图层实体类
 */
@Data
public class ScfGetRenewableInListVO {
    /**
     * 主体主键
     */
    private String rowId;
    /**
     * 入库单号-一次货运多次入库
     */
    private String renewableInNum;
    /**
     * 采购合同编号
     */
    private String contractNum;
    /**
     * 车牌号
     */
    private String truckNum;
    /**
     * 商品规格
     */
    private String specName;
    /**
     * 供应商名称
     */
    private String supplierName;
    /**
     * 再生资源名称
     */
    private String renewableName;
    /**
     * 入库日期（yyyyMMdd）
     */
    private String renewableInDate;
    /**
     * 毛重
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal roughWeight;

    /**
     * 皮重
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal tareWeight;

    /**
     * 扣重
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal deductWeight;

    /**
     * 净重
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal netWeight;
    /**
     * 单价
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal unitPrice;
    /**
     * 折扣金额
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal discountAmount;

    /**
     * 结算金额
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal settlementAmount;

    /**
     * 已付金额(默认为0)
     */
    @JsonSerialize(using = ToStringSerializer.class, nullsUsing = NullSerializer.class)
    private BigDecimal paidAmount;

    /**
     * 支付状态(0.未支付，1部分支付，2已支付)
     */
    private String paySts;

    // 是否关联CORRELATION
    private Integer correlation;
}
